import cn.hutool.core.date.DateUtil

import javax.xml.crypto.Data

import static com.github.llyb120.performance.define.All.*;


converter {
    name "str-conv"

    input {

    }
}

converter {
    name "int-conv"
    input{
        return Integer.parseInt(String.valueOf(it))
    }
}


converter {
    name "date-conv"

    input {
        if(it instanceof Date){
            return it
        }
        return DateUtil.parseDate(it)
    }

    output {
        return DateUtil.parseDateTime(it)
    }
}


converter {
    name("money-conv")

    input {
        return new BigDecimal(it)
    }
}

